<% 
	var headContent = {
%>
	<base href="${BASE_PATH }">
	<title>Jflyfox博客</title>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<link rel="icon" href="favicon.ico" />
	<link rel="shortcut icon" href="favicon.ico" />
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">
	<meta http-equiv="keywords" content="Jflyfox博客">
	<meta http-equiv="description" content="Jflyfox博客">

	<link rel="stylesheet" href="static/web/header.css" type="text/css" media="screen, projection">
	<link rel="stylesheet" href="static/web/home.css" type="text/css" media="screen, projection">
	
	<% include("/static/component/include/jquery.html"){} %>
	<script type="text/javascript" src="pages/web/home.js"></script>
<%
};

var bodyContent = {
%>

<%  include("/pages/web/home_header.html"){} %>	
	
	<div class="x-page-container">
		<div class="mod-diary">
			<div class="mod-diary-top"></div>
			<div class="mod-diary-inner">
				<div class="mod-diary-pen"></div>
				<div class="mod-diary-nav"></div>
				<div class="mod-diary-clip"></div>
				<div class="mod-topspaceinfo">
					<h1>
						<a class="space-name" href="javascript:void(0);">${model.content }</a>
					</h1>
				</div>

				<div class="mod-bloglist">

					<% for(item in list){ %>
						<div class="mod-blogitem">
							<div class="box-postdate">
							${item.publish_time}
							</div>
							<div class="item-title">
								<a href="web/article/${item.id}"  target="_blank">${item.title}</a>
								<div class="item-right">
								<% if(item.is_comment=='1'){ %>
								<a href="web/article/${item.id}#article_comment"  target="_blank"><span>评论(${item.count_comment!'0'})</span></a>
								<% } %>
								<span>浏览量(${item.count_view!'0'})</span>
								</div>
							</div>
							<% if(item.type==12) { %>
							<div class="item-content">${item.content!'' }</div>
							<% } else { // type ==11 %>
							<% var article_content = flyfox.showHTML(item.content!'',200,'  ......'); %>
							<div class="item-content">${article_content!'' }<br><br><a href="web/article/${item.id}"  target="_blank">查看全部</a></div>
							<% } %>
						</div>
					<% } %>

				</div>
			</div>
			<div class="mod-diary-bottom"></div>
		</div>
	</div>
	
	<a id="scrollTop" href="javacript:void(0);" title="返回顶部" style="display: inline;"></a>
<%}; %>


<% layout("/pages/template/_layout.html",{head:headContent,body:bodyContent}){ %>
<%} %>
